package com.guoxiang.service;


import com.guoxiang.mapper.MessageMapper;
import com.guoxiang.pojo.MessageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.expression.spel.ast.IntLiteral;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    private MessageMapper messageMapper;

    public List<MessageBean> getALLMessage(int page, int limit) {
        List<MessageBean> messageBeans = messageMapper.selectAll(page, limit);
        return messageBeans;
    }
}
